<script>
import { getToken } from "./utils/auth.js";

export default {
  onShow: function () {
    const token = getToken();
    if (!token) {
      uni.redirectTo({
        url: "/pages/login/login",
      });
    }
  },
  onHide: function () {},
};
 
</script>

<style lang="scss">
@import "@/uni_modules/uview-ui/index.scss";

/*每个页面公共css */
* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}
uni-page-body {
  width: 100%;
  height: 100%;
}
page {
  height: 100%;
}
</style>
